package org.anarcoding.twitterbot.providers;

import org.anarcoding.twitterbot.model.AnarcoTwitterBotConf;
import org.anarcoding.twitterbot.view.ShlAnarcoTwitterBotConf;
import org.eclipse.swt.widgets.Shell;

import com.anarcoding.util.SWTUtil;

public class AnarcoTwitterDialogProvider {

	private AnarcoTwitterDialogProvider() {
	}

	public static AnarcoTwitterBotConf getAnarcoTwitterBotConfFromDialog( Shell parent ) {
		ShlAnarcoTwitterBotConf shl = new ShlAnarcoTwitterBotConf( parent );
		SWTUtil.initCentralizedShell( shl );

		return shl.getAnarcoTwitterBotConf();
	}
}